
import axios from 'axios';

export function dishIdChaXun(dishId: String) {
  return axios.get('/dish/dishIdChaXun/' + dishId );
}

export function updateDish(dish: any) {
  return axios.post('/dish/updateDishById', dish);
}

export function addDish(dish: any) {
  return axios.post('/dish/add', dish);
}

export function deleteDish(dishId: any) {
  return axios.get('/dish/delete/' + dishId);
}

export function commendAll() {
  return axios.get('/dish/commendAll/' );
}